#!/bin/bash

# This file is part of libmarco
# http://code.google.com/p/libmarco/

# Open the current URL of SRC_BROWSER with DST_BROWSER

SRC_BROWSER="Camino"
DST_BROWSER="org.mozilla.firefox"

URL=`osascript -e "Tell application \"$SRC_BROWSER\"" -e "set theURL to URL of current tab of front browser window as text" -e "end tell"`
echo "opening $URL"
open $URL -b "$DST_BROWSER"